package com.wish233.retry;

import com.wish233.model.rpc.RpcResponse;

import java.util.concurrent.Callable;

/**
 * 重试策略
 * @author WHH
 */
public interface RetryStrategy {

    /**
     * 重试
     * @param callable
     * @return
     */
    RpcResponse retry(Callable<RpcResponse> callable) throws Exception;

}
